home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / vidhrdw / blockade.c < prev    next >
C/C++ Source or Header  |  2000-01-09  |  987b  |  47 lines

  1. #include "driver.h"
  2. #include "vidhrdw/generic.h"
  3.  
  4.  
  5. void blockade_vh_screenrefresh(struct osd_bitmap *bitmap,int full_refresh)
  6. {
  7.     int offs;
  8.  
  9.     /* for every character in the Video RAM, check if it has been modified */
  10.     /* since last time and update it accordingly. */
  11.     for (offs = videoram_size - 1;offs >= 0;offs--)
  12.     {
  13.         if (dirtybuffer[offs])
  14.         {
  15.             int sx,sy;
  16.             int charcode;
  17.  
  18.             dirtybuffer[offs] = 0;
  19.  
  20.             sx = offs % 32;
  21.             sy = offs / 32;
  22.  
  23.             charcode = videoram[offs];
  24.  
  25.             drawgfx(tmpbitmap,Machine->gfx[0],
  26.                     charcode,
  27.                     0,
  28.                     0,0,
  29.                     8*sx,8*sy,
  30.                     &Machine->drv->visible_area,TRANSPARENCY_NONE,0);
  31.  
  32.             if (!full_refresh)
  33.                 drawgfx(bitmap,Machine->gfx[0],
  34.                     charcode,
  35.                     0,
  36.                     0,0,
  37.                     8*sx,8*sy,
  38.                     &Machine->drv->visible_area,TRANSPARENCY_NONE,0);
  39.  
  40.         }
  41.     }
  42.  
  43.     if (full_refresh)
  44.         /* copy the character mapped graphics */
  45.         copybitmap(bitmap,tmpbitmap,0,0,0,0,&Machine->drv->visible_area,TRANSPARENCY_NONE,0);
  46. }
  47.